function [sample, expect] = sampleGenerate()

origin = reshape(randperm(9), [3, 3]);

row = [origin, origin([2, 3, 1], :), origin([3, 1, 2], :)];

expect = [row; row(:, [2, 3, 1, 5, 6, 4, 8, 9, 7]); row(:, [3, 1, 2, 6, 4, 5, 9, 7, 8])];

sample = zeros(size(expect));

totalNum = 28 + unidrnd(10);

for i = 1:totalNum
    while 1
        x = randi(9, 1);
        y = randi(9, 1);
        if ~sample(x, y);
            break
        end
    end
    sample(x, y) = expect(x, y);
end

end